//发送id到控制台。没有id则新建标注。有的话，则返回已经存在
 
module.exports = 
{
    send_device_id: function(androidBot,device_uid) 
    { 

 
        console.log("check_action");
        //POST请求
        let url = "http://oa.enpingshi.com/api/tamer/send_device_id.php?device_uid="+device_uid;
        let requestType = "POST";
        let headers = {'Content-Type':'application/x-www-form-urlencoded'};
        let postData = "toolbox_urls=www.aibote.com";


        let _result =  androidBot.urlRequest(url, "GET");


        _result.then(value => {
        console.log(value);
        }).catch(error => {
        console.error('Promise 被拒绝了:', error);
        });


        return _result;

    

    }


    
};